<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="luckyphone"></div>
		<input type="button" value="抽奖" id="choujiang" />
		<script>
			var phones = ["123","114","135","136","137","137"];
			luckyphone.innerHTML = phones[0];
			var timer;
			choujiang.onclick = function(){
				if(choujiang.value == "STOP"){
					clearInterval(timer);
					choujiang.value = "ACTION";
				}else{
					timer = setInterval(f,10);
					choujiang.value = "STOP";
				}
			};
			function f(){
				luckyphone.innerHTML = phones[Math.floor(Math.random()*phones.length)];
			}
		</script>
	</body>
</html>
